﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="behaviors">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="serviceBehaviors">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="behavior">
                <xs:complexType>
                  <xs:sequence>
                    <xs:choice maxOccurs="unbounded">
                      <xs:element name="serviceMetadata">
                        <xs:complexType>
                          <xs:attribute name="httpGetEnabled" type="xs:boolean" use="required" />
                        </xs:complexType>
                      </xs:element>
                      <xs:element name="serviceDebug">
                        <xs:complexType>
                          <xs:attribute name="includeExceptionDetailInFaults" type="xs:boolean" use="required" />
                        </xs:complexType>
                      </xs:element>
                      <xs:element name="atsServiceBehavior">
                        <xs:complexType>
                          <xs:sequence>
                            <xs:element name="serviceCommands">
                              <xs:complexType>
                                <xs:sequence>
                                  <xs:element maxOccurs="unbounded" name="serviceCommand">
                                    <xs:complexType>
                                      <xs:attribute name="name" type="xs:string" use="required" />
                                      <xs:attribute name="sysId" type="xs:unsignedByte" use="required" />
                                      <xs:attribute name="serviceDesc" type="xs:string" use="required" />
                                      <xs:attribute name="serviceEffectiveDate" type="xs:date" use="required" />
                                      <xs:attribute name="serviceStartTime" type="xs:time" use="required" />
                                      <xs:attribute name="serviceEndTime" type="xs:time" use="required" />
                                      <xs:attribute name="activeFlag" type="xs:boolean" use="required" />
                                      <xs:attribute name="operationService" type="xs:string" use="required" />
                                    </xs:complexType>
                                  </xs:element>
                                </xs:sequence>
                              </xs:complexType>
                            </xs:element>
                          </xs:sequence>
                          <xs:attribute name="loggerName" type="xs:string" use="required" />
                        </xs:complexType>
                      </xs:element>
                    </xs:choice>
                  </xs:sequence>
                  <xs:attribute name="name" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>